package com.yellow.notificationservice.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("system_alerts")
public class SystemAlert {

    @TableId(value = "alert_id", type = IdType.AUTO)
    private Integer alertId;

    @TableField("alert_type")
    private String alertType;

    @TableField("alert_text")
    private String alertText;

    @TableField("alert_date")
    private LocalDateTime alertDate;

    @TableField("urgency_level")
    private Integer urgencyLevel;
}
